<!--The content below is only a placeholder and can be replaced.-->
<div style="text-align:center">

  <label>
    学号：<input type="text" [(ngModel)]="studentvo.xh" />
  </label>

  <label>
    姓名：<input type="text" [(ngModel)]="studentvo.xm" />
  </label>

  <label>
    身份证号：<input type="text" [(ngModel)]="studentvo.sfzh" />
  </label>

  <button (click)="add()">保存</button>

</div>

<div style="text-align:center">

<table border="2">
<tr>
  <td>主键</td>
  <td>学号</td>
  <td>姓名</td>
  <td>性别</td>
  <td>出生日期</td>
  <td>籍贯</td>
  <td>操作</td>
</tr>

<tr *ngFor="let s of sl" >
  <td>{{s.studentid}}</td>
  <td>{{s.stunum}}</td>
  <td>{{s.name}}</td>
  <td>{{s.sex}}</td>
  <td>{{s.birthday | date:"yyyy-MM-dd"}}</td>
  <td>{{s.nativeplace}}</td>
  <td>
    <button (click)="getToUpdateStudent(s.studentid)">修改</button>
    <button (click)="deleteStudent(s.studentid)">删除</button>
  </td>
</tr>


</table>



</div>


